package com.project.app;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.project.app.bean.AndroidToJs;

import org.androidannotations.annotations.EActivity;
import org.androidannotations.annotations.ViewById;

import wendu.dsbridge.DWebView;

@EActivity
public class DSBridgeJSCallAndroidActivity extends AppCompatActivity {
    @ViewById(R.id.webview)
    DWebView dwebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_dsbrige);

        DWebView.setWebContentsDebuggingEnabled(true);
        dwebView.addJavascriptObject(new AndroidToJs(), null);
        dwebView.addJavascriptObject(new AndroidToJs(),"echo");
        dwebView.loadUrl("file:///android_asset/ds_js_call_native.html");

    }





}
